<?php


namespace app\common\model;


use think\Model;

class PrivateChatHistoryModel extends Model
{

    public function anchor()
    {
        return $this->hasOne(UserModel::class, 'id', 'anchor_id');
    }

    public function chatSeession()
    {
        return $this->hasOne(PrivateChatSessionModel::class, 'private_chat_history_id', 'id');
    }

}